<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="../../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../../css/zTreeStyle/zTreeStyle.css">
<link rel="stylesheet" href="../../../css/zTreeStyle/orgtree.css">
<link rel="stylesheet" href="../../../css/bootstrap-datetimepicker.min.css">

<style>
html, body {
	height: 100%;
}
.row {
	margin-top: 5px;
	margin-bottom: 5px;
}
.form-group {
	margin-top: 1%;
}
.paddingLeft {
	padding-left: 20px;
}
.container-add {
	margin-left: 10px !important;
	width: 99%;
}
</style>
</head>
<body>
	<div class="container paddingLeft container-add" style="height: 100%;">
		<div class="row">
			<div class="col-md-12 column noPadding ">
				<ul class="breadcrumb">
					<li><a href="#">当前位置:Home</a></li>
					<li><a href="#">Library</a></li>
					<li class="active">Data</li>
				</ul>
			</div>
		</div>
		<div class="row">
			<div class="alert alert-danger hidden" style="text-align:center" id="editAlert">请选择要编辑的机构！</div>
			<form class="form-inline" role="form" id="form1">
				<input type="hidden" name="pageNum" id="pageNum" /> <input
					type="hidden" name='pageSize' id='pageSize' />
					<input	type="hidden" name='cateLevel' value="1" />
				<div class="form-group">
					<label for="name">检测数据</label>
					<input type="text" class="form-control" name="cateName" placeholder="一级分类名称">
				</div>
				<!-- <div class="form-group">
					<label for="name">二级分类名称</label>
					 <input type="text" class="form-control" name="cateName" placeholder="角色名称">
				</div> -->
				<div class="form-group">
					<button type="button" class="btn btn-primary" style="width: 120px"
						onclick="searchAll();">查询</button>
				</div>
			</form>
		</div>
		<div class="row">
				 <div class="btn-group" id="group_btns">
				    <button type="button" class="btn btn-primary" data-id="del">删除</button>
				    <button type="button" class="btn btn-primary" data-id="edit">修改</button>
				</div>
		</div>
		<div class="row" style="height:64%; overflow: auto;">
			<div class="table-responsive">
				<table class="table  table-striped table-bordered table-hover fixed_headers">
					<thead>
						<tr>
							<th>检测数据</th>
							<th>包含内容描述</th>
							<th>创建时间</th>
							<th>创建管理员</th>
						</tr>
					</thead>
					<tbody id="tbodys">
					</tbody>
				</table>
			</div>
		</div>
		<div class="row clearfix">
			<div class="col-md-12 column noPadding">
				<ul class="pagination" id="pagination">
				</ul>
			</div>
		</div>
	</div>
	<!-- 添加modal start-->
	<div class="modal fade" id="myModal_add" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	    <div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">增加物品一级分类</h4>
	            </div>
	            <div class="modal-body">
	            	<form class="form-horizontal" role="form" id="form_add">
						  <div class="form-group">
						    <label for="firstname" class="col-sm-4 control-label">名称</label>
						    <div class="col-sm-8">
						      <input type="text"  class="form-control" name="cateName" id="cateNameAdd"  placeholder="一级分类名称">
						    </div>
						  </div>
						  <div class="form-group">
						    <label for="lastname" class="col-sm-4 control-label">描述</label>
						    <div class="col-sm-8">
						      <input type="text" class="form-control" name="cateDesc" id="cateDescAdd" placeholder="描述">
						    </div>
						  </div>
					</form>
	            </div>
	            <div class="modal-footer">
	                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	                <button type="button" class="btn btn-primary" onclick="submitAddBtn();">保存</button>
	            </div>
	        </div><!-- /.modal-content -->
	    </div><!-- /.modal -->
	</div>
	<!-- 添加modal end-->
	<!-- 修改modal start-->
	<div class="modal fade" id="myModal_edit" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	    <div class="modal-dialog">
	        <div class="modal-content">
	            <div class="modal-header">
	                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
	                <h4 class="modal-title" id="myModalLabel">添加管理角色</h4>
	            </div>
	            <div class="modal-body">
	            	<form class="form-horizontal" role="form" id="form_edit">
						  <div class="form-group">
						    <label for="firstname" class="col-sm-4 control-label">类别名称</label>
						    <div class="col-sm-8">
						      <input type="hidden"  name="cateId" id="cateIdEdit" >
						      <input type="text"  class="form-control" name="cateName" id="cateNameEdit"   placeholder="类别名称">
						    </div>
						  </div>
						  <div class="form-group">
						    <label for="lastname" class="col-sm-4 control-label">描述</label>
						    <div class="col-sm-8">
						      <input type="text" class="form-control"  name="cateDesc" id="cateDescEdit" placeholder="描述">
						    </div>
						  </div>
					</form>
	            </div>
	            <div class="modal-footer">
	                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
	                <button type="button" class="btn btn-primary" onclick="submitEditBtn();">保存</button>
	            </div>
	        </div><!-- /.modal-content -->
	    </div><!-- /.modal -->
	</div>
	<!-- 修改modal end-->
	<script src="../../../js/jquery.js"></script>
<script src="../../../js/bootstrap.min.js"></script>
<script src="../../../js/jquery.twbsPagination.js"></script>
<script src="../../../js/commonJs.js"></script>
<script type="text/javascript" src="../../../js/detector/detectorInfoList.js"></script>
</body>
</html>